package com.cn.daimajiangxin.flink.sink;

public class LogEntry {
    private static final long serialVersionUID = 1L;
    private String timestamp;
    private String logLevel;
    private String source;
    private String message;

    public LogEntry(String timestamp, String logLevel, String source, String message) {
        this.timestamp = timestamp;
        this.logLevel = logLevel;
        this.source = source;
        this.message = message;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(String logLevel) {
        this.logLevel = logLevel;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return String.format("LogEntry{timestamp='%s', logLevel='%s', source='%s', message='%s'}",
                timestamp, logLevel, source, message);
    }
}